CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/compiler

2019-09-25 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Wed Sep 25 14:53:20 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/compiler:
brw_fs_combine_constants.cpp

Log Message:
Avoid truncating int64_t to int. Found by clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \

xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/compiler

2019-09-25 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Wed Sep 25 14:53:20 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/compiler:
brw_fs_combine_constants.cpp

Log Message:
Avoid truncating int64_t to int. Found by clang.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \

xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp
diff -u xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.1.1.2 xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.2
--- xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp:1.1.1.2	Tue Sep 24 17:39:40 2019
+++ xsrc/external/mit/MesaLib/dist/src/intel/compiler/brw_fs_combine_constants.cpp	Wed Sep 25 14:53:20 2019
@@ -34,6 +34,7 @@
  * cannot use immediate values.
  */
 
+#include 
 #include "brw_fs.h"
 #include "brw_cfg.h"
 #include "util/half_float.h"
@@ -232,7 +233,7 @@ get_constant_value(const struct gen_devi
   break;
}
case BRW_REGISTER_TYPE_Q: {
-  int64_t val = !can_do_source_mods ? src->d64 : abs(src->d64);
+  int64_t val = !can_do_source_mods ? src->d64 : std::abs(src->d64);
   memcpy(out, , 8);
   break;
}



CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/isl

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 20:07:16 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/isl: isl_tiled_memcpy.c

Log Message:
Avoid conflict with netbsd's highly visible bswap32 definition.

Re-patching, patch was lost in a rename.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/intel/isl

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 20:07:16 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/isl: isl_tiled_memcpy.c

Log Message:
Avoid conflict with netbsd's highly visible bswap32 definition.

Re-patching, patch was lost in a rename.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c
diff -u xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c:1.1.1.1 xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c:1.2
--- xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c:1.1.1.1	Tue Sep 24 17:44:21 2019
+++ xsrc/external/mit/MesaLib/dist/src/intel/isl/isl_tiled_memcpy.c	Tue Sep 24 20:07:16 2019
@@ -64,6 +64,10 @@ ror(uint32_t n, uint32_t d)
return (n >> d) | (n << (32 - d));
 }
 
+/* Handle conflicting declaration and conflicting macro in netbsd */
+#undef bswap32
+#define bswap32(n) __builtin_bswap32(n)
+#if 0
 static inline uint32_t
 bswap32(uint32_t n)
 {
@@ -76,6 +80,7 @@ bswap32(uint32_t n)
   (n << 24);
 #endif
 }
+#endif
 
 /**
  * Copy RGBA to BGRA - swap R and B.



CVS commit: xsrc/external/mit/MesaLib/dist/src/util

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:47:33 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/util: u_queue.c

Log Message:
Apply u_queue.c patch from pkgsrc:

atexit is not a good idea in shared libraries.
attempt to port cpuset logic to netbsd


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/MesaLib/dist/src/util/u_queue.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/util/u_queue.c
diff -u xsrc/external/mit/MesaLib/dist/src/util/u_queue.c:1.3 xsrc/external/mit/MesaLib/dist/src/util/u_queue.c:1.4
--- xsrc/external/mit/MesaLib/dist/src/util/u_queue.c:1.3	Tue Sep 24 19:26:51 2019
+++ xsrc/external/mit/MesaLib/dist/src/util/u_queue.c	Tue Sep 24 19:47:33 2019
@@ -48,15 +48,22 @@ static once_flag atexit_once_flag = ONCE
 static struct list_head queue_list;
 static mtx_t exit_mutex = _MTX_INITIALIZER_NP;
 
+#define HAVE_NOATEXIT
+#if defined(HAVE_NOATEXIT)
 static int global_init_called = 0;
 
 static void __attribute__((__destructor__))
+#else
+static void
+#endif
 atexit_handler(void)
 {
struct util_queue *iter;
 
+#if defined(HAVE_NOATEXIT)
if (!global_init_called)
   return;
+#endif
 
mtx_lock(_mutex);
/* Wait for all queues to assert idle. */
@@ -70,7 +77,11 @@ static void
 global_init(void)
 {
LIST_INITHEAD(_list);
+#if defined(HAVE_NOATEXIT)
global_init_called = 1;
+#else
+   atexit(atexit_handler);
+#endif
 }
 
 static void
@@ -251,12 +262,25 @@ util_queue_thread_func(void *input)
   /* Don't inherit the thread affinity from the parent thread.
* Set the full mask.
*/
+#if defined(__NetBSD__)
+  cpuset_t *cpuset;
+  cpuset = cpuset_create();
+  if (cpuset != NULL) {
+ cpuset_zero(cpuset);
+ for (unsigned i = 0; i < cpuset_size(cpuset); i++)
+cpuset_set(i, cpuset);
+
+ pthread_setaffinity_np(pthread_self(), cpuset_size(cpuset), cpuset);
+ cpuset_destroy(cpuset);
+  }
+#else
   cpu_set_t cpuset;
   CPU_ZERO();
   for (unsigned i = 0; i < CPU_SETSIZE; i++)
  CPU_SET(i, );
 
   pthread_setaffinity_np(pthread_self(), sizeof(cpuset), );
+#endif
}
 #endif
 



CVS commit: xsrc/external/mit/MesaLib/dist/src/util

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:47:33 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/util: u_queue.c

Log Message:
Apply u_queue.c patch from pkgsrc:

atexit is not a good idea in shared libraries.
attempt to port cpuset logic to netbsd


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/MesaLib/dist/src/util/u_queue.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/compiler/nir

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:45:13 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/compiler/nir: nir_builtin_builder.h

Log Message:
Provide a bogus definition of NAN for vax.

ifdef __vax__ rather than ifndef NAN to ensure it is never accidentally
picked up for non-VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h
diff -u xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h:1.1.1.2 xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h:1.2
--- xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h:1.1.1.2	Tue Sep 24 16:44:18 2019
+++ xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h	Tue Sep 24 19:45:13 2019
@@ -179,6 +179,10 @@ nir_minmag(nir_builder *b, nir_ssa_def *
return nir_bcsel(b, condy, y, nir_bcsel(b, condx, x, nir_fmin(b, x, y)));
 }
 
+#ifdef __vax__
+#define NAN FLT_MAX
+#endif
+
 static inline nir_ssa_def*
 nir_nan(nir_builder *b, nir_ssa_def *x)
 {



CVS commit: xsrc/external/mit/MesaLib/dist/src/compiler/nir

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:45:13 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/compiler/nir: nir_builtin_builder.h

Log Message:
Provide a bogus definition of NAN for vax.

ifdef __vax__ rather than ifndef NAN to ensure it is never accidentally
picked up for non-VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/compiler/nir/nir_builtin_builder.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist

2019-09-24 Thread Maya Rashish
Module Name:xsrc
Committed By:   maya
Date:   Tue Sep 24 19:26:53 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/include/GL/internal: dri_interface.h
xsrc/external/mit/MesaLib/dist/src/compiler/glsl:
glsl_parser_extras.cpp
xsrc/external/mit/MesaLib/dist/src/egl/main: eglglobals.c
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util: u_format.c
u_format_tests.c
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/vl:
vl_compositor.c vl_compositor.h
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe:
lp_setup_point.c
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen:
nv50_ir.h nv50_ir_lowering_nvc0.cpp nv50_ir_lowering_nvc0.h
nv50_ir_print.cpp nv50_ir_ra.cpp nv50_ir_util.h
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600:
evergreen_compute.c r600_query.c r600_texture.c
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeon:
radeon_vcn_enc.c
xsrc/external/mit/MesaLib/dist/src/gallium/include/pipe:
p_video_state.h
xsrc/external/mit/MesaLib/dist/src/gallium/state_trackers/dri:
dri_drawable.c dri_screen.h
xsrc/external/mit/MesaLib/dist/src/gbm/backends/dri: gbm_dri.c
xsrc/external/mit/MesaLib/dist/src/glx: dri_common.c dri_glx.c
glxclient.h
xsrc/external/mit/MesaLib/dist/src/intel/compiler: brw_vue_map.c
xsrc/external/mit/MesaLib/dist/src/intel/dev: gen_device_info.c
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i915:
intel_context.c intel_context.h intel_screen.c intel_screen.h
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965:
intel_batchbuffer.c intel_buffer_objects.c intel_mipmap_tree.c
intel_mipmap_tree.h intel_screen.c intel_screen.h
intel_tex_validate.c
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau:
nouveau_context.c
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon:
radeon_common_context.c
xsrc/external/mit/MesaLib/dist/src/mesa/main: context.c dlist.c
xsrc/external/mit/MesaLib/dist/src/mesa/swrast: s_span.c
xsrc/external/mit/MesaLib/dist/src/mesa/vbo: vbo_exec_draw.c
xsrc/external/mit/MesaLib/dist/src/util: disk_cache.c ralloc.c u_math.h
u_process.c u_queue.c
Added Files:
xsrc/external/mit/MesaLib/dist: Android.common.mk Android.mk
CleanSpec.mk
xsrc/external/mit/MesaLib/dist/bin: bugzilla_mesa.sh get-pick-list.sh
shortlog_mesa.sh
xsrc/external/mit/MesaLib/dist/src/gallium: Android.common.mk
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm: f.cpp
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno:
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/i915: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/softpipe: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/drivers/svga: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/freedreno/drm:
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/i915/drm: Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/nouveau/drm:
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/radeon/drm:
Android.mk
xsrc/external/mit/MesaLib/dist/src/gallium/winsys/svga/drm: Android.mk
xsrc/external/mit/MesaLib/dist/src/loader: Android.mk
xsrc/external/mit/MesaLib/dist/src/mapi: Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa: Android.gen.mk
Android.libmesa_dricore.mk Android.libmesa_glsl_utils.mk
Android.libmesa_st_mesa.mk Android.mesa_gen_matypes.mk Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri: Android.mk
gen-symbol-redefs.py
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/common: Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i915: Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965: Android.mk
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/r200: Doxyfile
xsrc/external/mit/MesaLib/dist/src/mesa/program: Android.mk
xsrc/external/mit/MesaLib/dist/src/util: Android.mk
Removed Files:
xsrc/external/mit/MesaLib/dist: Makefile.am Makefile.in aclocal.m4
  

CVS commit: xsrc/external/mit/MesaLib/dist/src

2019-06-01 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Sat Jun  1 07:53:00 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/dev: gen_device_info.c
xsrc/external/mit/MesaLib/dist/src/mesa/program: program_parse.tab.c
program_parse.tab.h

Log Message:
merge mesa 18.3.6.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c
cvs rdiff -u -r1.3 -r1.4 \
xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.c \
xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c
diff -u xsrc/external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c:1.2 xsrc/external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c:1.3
--- xsrc/external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c:1.2	Sun Mar 10 04:15:51 2019
+++ xsrc/external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c	Sat Jun  1 07:53:00 2019
@@ -777,6 +777,7 @@ static const struct gen_device_info gen_
.num_subslices = { 2, },
.num_eu_per_subslice = 6,
.l3_banks = 2,
+   .urb.size = 192,
.simulator_id = 24,
 };
 static const struct gen_device_info gen_device_info_cfl_gt2 = {

Index: xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.c
diff -u xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.c:1.3 xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.c:1.4
--- xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.c:1.3	Sun Mar 10 04:15:56 2019
+++ xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.c	Sat Jun  1 07:53:00 2019
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 3.1.  */
+/* A Bison parser, made by GNU Bison 3.2.  */
 
 /* Bison implementation for Yacc-like parsers in C
 
@@ -40,11 +40,14 @@
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below.  */
 
+/* Undocumented macros, especially those whose name start with YY_,
+   are private implementation details.  Do not rely on them.  */
+
 /* Identify Bison output.  */
 #define YYBISON 1
 
 /* Bison version.  */
-#define YYBISON_VERSION "3.1"
+#define YYBISON_VERSION "3.2"
 
 /* Skeleton name.  */
 #define YYSKELETON_NAME "yacc.c"
@@ -67,8 +70,8 @@
 #define yynerrs _mesa_program_nerrs
 
 
-/* Copy the first part of user declarations.  */
-#line 1 "./program/program_parse.y" /* yacc.c:339  */
+/* First part of user prologue.  */
+#line 1 "./program/program_parse.y" /* yacc.c:338  */
 
 /*
  * Copyright © 2009 Intel Corporation
@@ -190,13 +193,16 @@ static struct asm_instruction *asm_instr
   }	\
} while(0)
 
-#line 194 "program/program_parse.tab.c" /* yacc.c:339  */
-
+#line 197 "program/program_parse.tab.c" /* yacc.c:338  */
 # ifndef YY_NULLPTR
-#  if defined __cplusplus && 201103L <= __cplusplus
-#   define YY_NULLPTR nullptr
+#  if defined __cplusplus
+#   if 201103L <= __cplusplus
+#define YY_NULLPTR nullptr
+#   else
+#define YY_NULLPTR 0
+#   endif
 #  else
-#   define YY_NULLPTR 0
+#   define YY_NULLPTR ((void*)0)
 #  endif
 # endif
 
@@ -337,7 +343,7 @@ extern int _mesa_program_debug;
 
 union YYSTYPE
 {
-#line 129 "./program/program_parse.y" /* yacc.c:355  */
+#line 129 "./program/program_parse.y" /* yacc.c:353  */
 
struct asm_instruction *inst;
struct asm_symbol *sym;
@@ -363,7 +369,7 @@ union YYSTYPE
   unsigned negate:1;
} ext_swizzle;
 
-#line 367 "program/program_parse.tab.c" /* yacc.c:355  */
+#line 373 "program/program_parse.tab.c" /* yacc.c:353  */
 };
 
 typedef union YYSTYPE YYSTYPE;
@@ -391,8 +397,8 @@ int _mesa_program_parse (struct asm_pars
 
 #endif /* !YY__MESA_PROGRAM_PROGRAM_PROGRAM_PARSE_TAB_H_INCLUDED  */
 
-/* Copy the second part of user declarations.  */
-#line 271 "./program/program_parse.y" /* yacc.c:358  */
+/* Second part of user prologue.  */
+#line 271 "./program/program_parse.y" /* yacc.c:355  */
 
 extern int
 _mesa_program_lexer_lex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param,
@@ -405,7 +411,7 @@ yylex(YYSTYPE *yylval_param, YYLTYPE *yy
return _mesa_program_lexer_lex(yylval_param, yylloc_param, state->scanner);
 }
 
-#line 409 "program/program_parse.tab.c" /* yacc.c:358  */
+#line 415 "program/program_parse.tab.c" /* yacc.c:355  */
 
 #ifdef short
 # undef short
@@ -480,15 +486,6 @@ typedef short yytype_int16;
 # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
 #endif
 
-#if !defined _Noreturn \
- && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
-# if defined _MSC_VER && 1200 <= _MSC_VER
-#  define _Noreturn __declspec (noreturn)
-# else
-#  define _Noreturn YY_ATTRIBUTE ((__noreturn__))
-# endif
-#endif
-
 /* Suppress unused-variable warnings by "using" E.  */
 #if ! defined lint || defined __GNUC__
 # define 

CVS commit: xsrc/external/mit/MesaLib/dist/src

2019-06-01 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Sat Jun  1 07:53:00 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/intel/dev: gen_device_info.c
xsrc/external/mit/MesaLib/dist/src/mesa/program: program_parse.tab.c
program_parse.tab.h

Log Message:
merge mesa 18.3.6.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/MesaLib/dist/src/intel/dev/gen_device_info.c
cvs rdiff -u -r1.3 -r1.4 \
xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.c \
xsrc/external/mit/MesaLib/dist/src/mesa/program/program_parse.tab.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/util

2019-05-11 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat May 11 18:50:15 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/util: u_atomic.c

Log Message:
try again to get it working for clang


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/MesaLib/dist/src/util/u_atomic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/MesaLib/dist/src/util

2019-05-11 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat May 11 18:50:15 UTC 2019

Modified Files:
xsrc/external/mit/MesaLib/dist/src/util: u_atomic.c

Log Message:
try again to get it working for clang


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/MesaLib/dist/src/util/u_atomic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/util/u_atomic.c
diff -u xsrc/external/mit/MesaLib/dist/src/util/u_atomic.c:1.4 xsrc/external/mit/MesaLib/dist/src/util/u_atomic.c:1.5
--- xsrc/external/mit/MesaLib/dist/src/util/u_atomic.c:1.4	Thu May  2 16:56:21 2019
+++ xsrc/external/mit/MesaLib/dist/src/util/u_atomic.c	Sat May 11 14:50:15 2019
@@ -62,12 +62,9 @@ __atomic_fetch_sub_8(volatile long long 
return r;
 }
 
+#ifndef __clang__
 WEAK long long
-__sync_val_compare_and_swap_8(volatile long long *ptr, long long oldval, long long newval
-#ifdef __clang__
-	, ...
-#endif
-)
+__sync_val_compare_and_swap_8(volatile long long *ptr, long long oldval, long long newval)
 {
long long r;
 
@@ -79,5 +76,6 @@ __sync_val_compare_and_swap_8(volatile l
 
return r;
 }
+#endif
 
 #endif



Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-04 Thread Joerg Sonnenberger
On Wed, Mar 04, 2015 at 03:00:38PM +, Christos Zoulas wrote:
 In article 20150304142628.gb3...@britannica.bec.de,
 Joerg Sonnenberger  jo...@britannica.bec.de wrote:
 
 It is installed. Check the set lists.
 
 My question was more like does every compiler supposed to provide it for x86,
 or it is considered an extension?

If they are care about support for vector engines, yes. I don't think
you will find it in PCC or TCC for example.

Joerg


Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-04 Thread Christos Zoulas
In article 20150304165518.ga10...@britannica.bec.de,
Joerg Sonnenberger  jo...@britannica.bec.de wrote:
On Wed, Mar 04, 2015 at 03:00:38PM +, Christos Zoulas wrote:
 In article 20150304142628.gb3...@britannica.bec.de,
 Joerg Sonnenberger  jo...@britannica.bec.de wrote:
 
 It is installed. Check the set lists.
 
 My question was more like does every compiler supposed to provide it for x86,
 or it is considered an extension?

If they are care about support for vector engines, yes. I don't think
you will find it in PCC or TCC for example.

So should I just
#ifndef __lint__
it?

christos



Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-04 Thread Joerg Sonnenberger
On Wed, Mar 04, 2015 at 10:19:00PM +, Christos Zoulas wrote:
 In article 20150304165518.ga10...@britannica.bec.de,
 Joerg Sonnenberger  jo...@britannica.bec.de wrote:
 On Wed, Mar 04, 2015 at 03:00:38PM +, Christos Zoulas wrote:
  In article 20150304142628.gb3...@britannica.bec.de,
  Joerg Sonnenberger  jo...@britannica.bec.de wrote:
  
  It is installed. Check the set lists.
  
  My question was more like does every compiler supposed to provide it for 
  x86,
  or it is considered an extension?
 
 If they are care about support for vector engines, yes. I don't think
 you will find it in PCC or TCC for example.
 
 So should I just
 #ifndef __lint__
 it?

And maybe PCC :)

Joerg


Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-04 Thread Iain Hibbert
On Thu, 5 Mar 2015, Joerg Sonnenberger wrote:

 On Wed, Mar 04, 2015 at 10:19:00PM +, Christos Zoulas wrote:
  In article 20150304165518.ga10...@britannica.bec.de,
  Joerg Sonnenberger  jo...@britannica.bec.de wrote:
  On Wed, Mar 04, 2015 at 03:00:38PM +, Christos Zoulas wrote:
   In article 20150304142628.gb3...@britannica.bec.de,
   Joerg Sonnenberger  jo...@britannica.bec.de wrote:
  
   It is installed. Check the set lists.
  
   My question was more like does every compiler supposed to provide it for 
   x86,
   or it is considered an extension?
  
  If they are care about support for vector engines, yes. I don't think
  you will find it in PCC or TCC for example.
 
  So should I just
  #ifndef __lint__
  it?

 And maybe PCC :)

please don't just add things like that because you aren't sure that PCC
currently supports it. That may or not be an issue, but if it is hidden
then it will be hidden. If something is a feature but non standard, then
lets use a feature test macro to include it

iain



Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-04 Thread Joerg Sonnenberger
On Tue, Mar 03, 2015 at 10:19:02PM -0500, Christos Zoulas wrote:
 On Mar 4,  9:19am, m...@eterna.com.au (matthew green) wrote:
 -- Subject: re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main
 
 | 
 | Christos Zoulas writes:
 |  Module Name:  xsrc
 |  Committed By: christos
 |  Date: Tue Mar  3 21:32:27 UTC 2015
 |  
 |  Modified Files:
 |xsrc/external/mit/MesaLib/dist/src/mesa/main: imports.h
 |  
 |  Log Message:
 |  xmmintrin.h is a gcc-specific header
 | 
 | it is?
 
 /usr/include/gcc-4.8/xmmintrin.h

That makes it a compiler *provided* header. Note that on default GCC
installations, even stddef.h comes from it.

 | -rw-r--r--  1 mrg  wheel  27578 Feb 12 07:49 
 src/external/bsd/llvm/dist/clang/lib/Headers/xmmintrin.h
 
 Should it be exposed to the implementation?

It is installed. Check the set lists.

Joerg


Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-04 Thread Christos Zoulas
In article 20150304142628.gb3...@britannica.bec.de,
Joerg Sonnenberger  jo...@britannica.bec.de wrote:

It is installed. Check the set lists.

My question was more like does every compiler supposed to provide it for x86,
or it is considered an extension?

christos



re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-03 Thread matthew green

Christos Zoulas writes:
 Module Name:  xsrc
 Committed By: christos
 Date: Tue Mar  3 21:32:27 UTC 2015
 
 Modified Files:
   xsrc/external/mit/MesaLib/dist/src/mesa/main: imports.h
 
 Log Message:
 xmmintrin.h is a gcc-specific header

it is?

-rw-r--r--  1 mrg  wheel  27578 Feb 12 07:49 
src/external/bsd/llvm/dist/clang/lib/Headers/xmmintrin.h


.mrg.


Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-03 Thread Joerg Sonnenberger
On Wed, Mar 04, 2015 at 09:19:01AM +1100, matthew green wrote:
 
 Christos Zoulas writes:
  Module Name:xsrc
  Committed By:   christos
  Date:   Tue Mar  3 21:32:27 UTC 2015
  
  Modified Files:
  xsrc/external/mit/MesaLib/dist/src/mesa/main: imports.h
  
  Log Message:
  xmmintrin.h is a gcc-specific header
 
 it is?
 
 -rw-r--r--  1 mrg  wheel  27578 Feb 12 07:49 
 src/external/bsd/llvm/dist/clang/lib/Headers/xmmintrin.h

Even ICC supports it :)

Joerg


re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2015-03-03 Thread Christos Zoulas
On Mar 4,  9:19am, m...@eterna.com.au (matthew green) wrote:
-- Subject: re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

| 
| Christos Zoulas writes:
|  Module Name:xsrc
|  Committed By:   christos
|  Date:   Tue Mar  3 21:32:27 UTC 2015
|  
|  Modified Files:
|  xsrc/external/mit/MesaLib/dist/src/mesa/main: imports.h
|  
|  Log Message:
|  xmmintrin.h is a gcc-specific header
| 
| it is?

/usr/include/gcc-4.8/xmmintrin.h

| -rw-r--r--  1 mrg  wheel  27578 Feb 12 07:49 
src/external/bsd/llvm/dist/clang/lib/Headers/xmmintrin.h

Should it be exposed to the implementation?

christos


Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mapi

2015-01-25 Thread Joerg Sonnenberger
On Sun, Jan 25, 2015 at 12:17:38PM +1100, matthew green wrote:
 
 Joerg Sonnenberger writes:
  On Sat, Jan 24, 2015 at 12:52:36PM +1100, matthew green wrote:
   
   Joerg Sonnenberger writes:
Module Name:xsrc
Committed By:   joerg
Date:   Fri Jan 23 12:09:27 UTC 2015

Modified Files:
xsrc/external/mit/MesaLib/dist/src/mapi: entry_x86-64_tls.h
entry_x86_tls.h entry_x86_tsd.h

Log Message:
Don't declare zero sized static objects, which is invalid in C.
Inline assembler is used to populate them, which is a horrible hack.
Make the hack work with clang by declaring the objects as hidden
instead.
   
   hmm, if you're going to touch these files we don't use, can you
   fix them so that we can use them? :-)
  
  At least one of the x86 versions is used, the rest is just a mechanical
  copy of the same change for consistency.
 
 where is it used?  the i386 versions were disabled shortly to
 your change, because they don't work.
 
 please revert this for now, unless you're going to work on fixing
 them...

Why? I don't see how a revert is going to improve anything.

Joerg


re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mapi

2015-01-25 Thread matthew green

Joerg Sonnenberger writes:
 Module Name:  xsrc
 Committed By: joerg
 Date: Fri Jan 23 12:09:27 UTC 2015
 
 Modified Files:
   xsrc/external/mit/MesaLib/dist/src/mapi: entry_x86-64_tls.h
   entry_x86_tls.h entry_x86_tsd.h
 
 Log Message:
 Don't declare zero sized static objects, which is invalid in C.
 Inline assembler is used to populate them, which is a horrible hack.
 Make the hack work with clang by declaring the objects as hidden
 instead.

hmm, if you're going to touch these files we don't use, can you
fix them so that we can use them? :-)
   
   At least one of the x86 versions is used, the rest is just a mechanical
   copy of the same change for consistency.
  
  where is it used?  the i386 versions were disabled shortly to
  your change, because they don't work.
  
  please revert this for now, unless you're going to work on fixing
  them...
 
 Why? I don't see how a revert is going to improve anything.

because they are changes against upstream that aren't needed.

if you want to fix them, please do, but if you're just going 
to change them without fixing them, there's no point in making
our tree divergent.


.mrg.


Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mapi

2015-01-24 Thread Joerg Sonnenberger
On Sat, Jan 24, 2015 at 12:52:36PM +1100, matthew green wrote:
 
 Joerg Sonnenberger writes:
  Module Name:xsrc
  Committed By:   joerg
  Date:   Fri Jan 23 12:09:27 UTC 2015
  
  Modified Files:
  xsrc/external/mit/MesaLib/dist/src/mapi: entry_x86-64_tls.h
  entry_x86_tls.h entry_x86_tsd.h
  
  Log Message:
  Don't declare zero sized static objects, which is invalid in C.
  Inline assembler is used to populate them, which is a horrible hack.
  Make the hack work with clang by declaring the objects as hidden
  instead.
 
 hmm, if you're going to touch these files we don't use, can you
 fix them so that we can use them? :-)

At least one of the x86 versions is used, the rest is just a mechanical
copy of the same change for consistency.

Joerg


re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mapi

2015-01-24 Thread matthew green

Joerg Sonnenberger writes:
 On Sat, Jan 24, 2015 at 12:52:36PM +1100, matthew green wrote:
  
  Joerg Sonnenberger writes:
   Module Name:  xsrc
   Committed By: joerg
   Date: Fri Jan 23 12:09:27 UTC 2015
   
   Modified Files:
 xsrc/external/mit/MesaLib/dist/src/mapi: entry_x86-64_tls.h
 entry_x86_tls.h entry_x86_tsd.h
   
   Log Message:
   Don't declare zero sized static objects, which is invalid in C.
   Inline assembler is used to populate them, which is a horrible hack.
   Make the hack work with clang by declaring the objects as hidden
   instead.
  
  hmm, if you're going to touch these files we don't use, can you
  fix them so that we can use them? :-)
 
 At least one of the x86 versions is used, the rest is just a mechanical
 copy of the same change for consistency.

where is it used?  the i386 versions were disabled shortly to
your change, because they don't work.

please revert this for now, unless you're going to work on fixing
them...


.mrg.


re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mapi

2015-01-23 Thread matthew green

Joerg Sonnenberger writes:
 Module Name:  xsrc
 Committed By: joerg
 Date: Fri Jan 23 12:09:27 UTC 2015
 
 Modified Files:
   xsrc/external/mit/MesaLib/dist/src/mapi: entry_x86-64_tls.h
   entry_x86_tls.h entry_x86_tsd.h
 
 Log Message:
 Don't declare zero sized static objects, which is invalid in C.
 Inline assembler is used to populate them, which is a horrible hack.
 Make the hack work with clang by declaring the objects as hidden
 instead.

hmm, if you're going to touch these files we don't use, can you
fix them so that we can use them? :-)

thanks.


.mrg.


Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2014-12-31 Thread David Laight
On Tue, Dec 30, 2014 at 05:58:06PM -0500, Christos Zoulas wrote:
 Modified Files:
   xsrc/external/mit/MesaLib/dist/src/mesa/main: format_utils.c
 
 Log Message:
 The macros in this file generate a gigantic function that takes a long time
 to compile and a ton of memory. Split it per datatype so that each is 1/8th
 the size. On my 48GB amd64 box this results in 3x speedup.

What happens at run time ?
Sounds like somethink that is being inlined so much that it
will displace everything from the cache and run slowly because
it is always waiting for instruction fetches.

David

-- 
David Laight: da...@l8s.co.uk


Re: CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/main

2014-12-31 Thread Christos Zoulas
In article 20141231101118.gb2...@snowdrop.l8s.co.uk,
David Laight  da...@l8s.co.uk wrote:
On Tue, Dec 30, 2014 at 05:58:06PM -0500, Christos Zoulas wrote:
 Modified Files:
  xsrc/external/mit/MesaLib/dist/src/mesa/main: format_utils.c
 
 Log Message:
 The macros in this file generate a gigantic function that takes a long time
 to compile and a ton of memory. Split it per datatype so that each is 1/8th
 the size. On my 48GB amd64 box this results in 3x speedup.

What happens at run time ?
Sounds like somethink that is being inlined so much that it
will displace everything from the cache and run slowly because
it is always waiting for instruction fetches.

I agree, but fixing this problem requires a complete rewrite. I was just
trying to fix the build :-)

christos



CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/glapi

2010-01-24 Thread Rafal Boni
Module Name:xsrc
Committed By:   rafal
Date:   Sun Jan 24 15:38:47 UTC 2010

Modified Files:
xsrc/external/mit/MesaLib/dist/src/mesa/glapi: glapi.c glapi_getproc.c
glthread.c

Log Message:
Decorate some GL APIs with PUBLIC so they're available to link against;
otherwise e.g. the swrast DRI module can't find _glapi_check_multithread.

From http://people.freedesktop.org/~krh/glapi.patch with some tweaks.
ok phone@


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/mesa/glapi/glapi.c \
xsrc/external/mit/MesaLib/dist/src/mesa/glapi/glthread.c
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/mesa/glapi/glapi_getproc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.