summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915
AgeCommit message (Collapse)AuthorFilesLines
2013-07-30mesa: default DEPTH_TEXTURE_MODE should be RED in the core profileMarek Olšák1-1/+1
Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-07-09i915: Remove i965+ chip names.Kenneth Graunke1-1/+0
i965+ chipsets shouldn't ever hit this driver. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Chris Forbes <chrisf@ijw.co.nz> Acked-by: Paul Berry <stereotype441@gmail.com> Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
2013-06-28mesa: Remove unused allow_large_textures driconf from classic drivers.Eric Anholt1-2/+1
This option hasn't been used since the introduction of DRI2. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove GLES 3.0 sRGB workaround.Kenneth Graunke1-52/+0
Gen3 doesn't support GLES 3.0, so there's no need for it. Acked-by: Eric Anholt <eric@anholt.net>
2013-06-28intel: Remove unused INTEL_MAX_FIXUP macro.Kenneth Graunke1-2/+0
v2: Remove it from i915, too (change by anholt) Acked-by: Eric Anholt <eric@anholt.net>
2013-06-28i915: Remove a duplicated set of PCI IDs.Eric Anholt2-14/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove various remaining dead code.Eric Anholt3-10/+0
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove dead debug flags.Eric Anholt2-20/+0
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove state batch emit support.Eric Anholt3-10/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Drop unused register #defines from the shared reg file.Eric Anholt1-67/+0
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Drop 965+ GL version setup.Eric Anholt1-22/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove gen6+ batchbuffer support.Eric Anholt6-91/+25
While i915 does have hardware contexts in hardware, we don't expect there to ever be SW support for it (given that support hasn't even made it back to gen5 or gen4). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Drop chipset detection code for 965+ chipsets.Eric Anholt2-238/+2
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Drop context fields specific to 965+ chipsets.Eric Anholt2-48/+2
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Drop all has_llc code.Eric Anholt8-226/+10
i915 never has llc. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove the remainder of the batchbuffer caching.Eric Anholt2-24/+0
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove miscellanous uncalled gen4 code from formerly shared files.Eric Anholt9-311/+0
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove most of the code under gen >= 4 checks.Eric Anholt8-162/+17
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove fake ETC support that only existed on gen4+Eric Anholt2-129/+10
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove separate stencil code.Eric Anholt11-506/+21
This was formerly-shared code for supporting gen5+. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove the I915 macro from the formerly shared code.Eric Anholt10-116/+5
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove all the MSAA support code.Eric Anholt14-1251/+59
This hardware doesn't have MSAA support, so this code is all a waste for it. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28i915: Remove all the HiZ code from i915.Eric Anholt13-716/+4
v2: Remove extra struct forward declaration (change by Ken) Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28mesa: GL_EXT_shadow_funcs is not optional with GL_ARB_shadowIan Romanick1-1/+0
Every driver left in Mesa that enables one also enables the other. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_ARB_texture_storage is not optionalIan Romanick1-1/+0
In Mesa, this extension is implemented purely in software. Drivers may *optionally* provide optimized paths. NOTE: This has the side effect of enabling the extension in the radeon, r200, and nouveau drivers. v2: Minor whitespace tidying (suggested by Brian). Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_ARB_shading_language_100 is not optionalIan Romanick1-1/+0
This extension just provides some of the most basic software framework for GLSL. Without GL_ARB_vertex_shader or GL_ARB_fragment_shader, applications still cannot use GLSL. There's no value in conditionalizing support for this extension. NOTE: This has the side effect of enabling the extension in the radeon, r200, and nouveau drivers. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_ARB_shader_objects is not optionalIan Romanick1-1/+0
This extension just provides some of the most basic software framework for GLSL. Without GL_ARB_vertex_shader or GL_ARB_fragment_shader, applications still cannot use GLSL. There's no value in conditionalizing support for this extension. NOTE: This has the side effect of enabling the extension in the radeon, r200, and nouveau drivers. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_NV_blend_square is not optionalIan Romanick1-1/+0
Every driver left in Mesa enables this extension all the time. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_EXT_fog_coord is not optionalIan Romanick1-1/+0
Every driver left in Mesa enables this extension all the time. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_EXT_secondary_color is not optionalIan Romanick1-1/+0
Every driver left in Mesa enables this extension all the time. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_EXT_framebuffer_object is not optionalIan Romanick1-1/+0
Every driver left in Mesa enables this extension all the time. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28i915: Remove GEN >= 4 extension supportIan Romanick1-76/+3
This copy of the source file is only used for GEN <= 3, so remove the dead code. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-27i965,i915: Return early if miptree allocation failsChad Versace1-0/+2
If allocation fails in intel_miptree_create_layout(), don't proceed to dereference the miptree. Return an early NULL. Fixes static analysis error reported by Klocwork. Note: This is a candidate for the 9.1 branch. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2013-06-26i915: Fork the shared code from i965.Eric Anholt43-25/+14731
Of this 15000 lines of code in intel/, we've identified 4000 lines that are trivially unnecessary for i915, and another 1000 that are pointless for i965, and expect to find more as time goes on. Split the i915 driver off, so that we can continue active development on i965 without worrying about breaking i915. Acked-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Chad Versace <chad.versace@linux.intel.com> Acked-by: Adam Jackson <ajax@redhat.com> (and I hear second hand that idr is OK with it, too)
2013-06-26i915: Remove dead symlink.Eric Anholt1-1/+0
2013-06-26i915: Drop dead batch dumping code.Eric Anholt3-860/+0
Batch dumping is now handled by shared code in libdrm. Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-26intel: Drop little bits of dead code.Eric Anholt1-2/+0
I noticed these while building the fork-i915 branch. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-26i915: Use the current drawbuffer's depth for polygon offset scale.Eric Anholt1-1/+1
There's no reason to care about the window system visual's depth for handling polygon offset in an FBO, and it could only lead to pain. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-05-15intel: Use accessor for stencil reference valuesChris Forbes1-4/+5
NOTE: This is a candidate for stable branches. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Paul Berry <stereotype441@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2013-05-11mesa: move max texture image unit constants to gl_program_constantsMarek Olšák2-4/+4
Const.MaxTextureImageUnits -> Const.FragmentProgram.MaxTextureImageUnits Const.MaxVertexTextureImageUnits -> Const.VertexProgram.MaxTextureImageUnits etc. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2013-05-01intel: use automake conditionals for defining FEATURE_{ES1,ES2}Andreas Boll1-1/+10
Removes the need of API_DEFINES. Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-04-30intel: Remove the last spans code!Eric Anholt4-13/+6
The remaining bits happen to do nothing that _swrast_span_render_start()/finish() don't do. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-04-30swrast: Always use MapTextureImage for mapping textures for swrast.Eric Anholt1-2/+0
Now that everything goes through ImageSlices[], we can rely on the driver's existing texture mapping function. A big block of code goes away on Radeon that looks like it was to deal with the validate that happened at SpanRenderStart, which no longer occurs since we don't need validation for the MapTextureImage hook. v2: Rewrite comment about ImageSlices, fix duplicated swImages, touch up unmap loop. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1) Reviewed-by: Brian Paul <brianp@vmware.com>
2013-04-29intel: Fold the one last function intel_tex_format.c into the caller.Eric Anholt2-2/+0
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-29i915: Add support for GL_EXT_texture_sRGB and GL_EXT_texture_sRGB_decode.Eric Anholt2-0/+13
This brings the driver up to GL 2.1.
2013-04-29i915: Correctly set the OQ counter bits.Eric Anholt2-0/+2
While we may provide the extension, we need to tell applications that they can't actually use it: An implementation can either set QUERY_COUNTER_BITS_ARB to the value 0, or to some number greater than or equal to n. If an implementation returns 0 for QUERY_COUNTER_BITS_ARB, then the occlusion queries will always return that zero samples passed the occlusion test, and so an application should not use occlusion queries on that implementation.
2013-04-21mesa: Introduce a globally-available minify() macro.Eric Anholt1-9/+9
This matches u_minify()'s behavior, for consistency. Reviewed-by: Brian Paul <brianp@vmware.com>
2013-04-17mesa: remove gl_context::_TriangleCapsBrian Paul1-3/+4
No longer used anywhere. Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-17mesa: remove DD_TRI_LIGHT_TWOSIDE flagBrian Paul1-0/+3
v2: use conditional operator instead of bit shifting Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-17mesa: remove DD_TRI_UNFILLED flagBrian Paul1-1/+3
Use alternate code in intel, r200, radeon drivers. v2: use conditional operator instead of bit shifting Reviewed-by: Eric Anholt <eric@anholt.net>